﻿using CommunityToolkit.Mvvm.ComponentModel;
using SoapStudio.Models;
using SoapStudio.Worker;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoapStudio.ViewModels
{
    public partial class CalculatorViewModel : ObservableObject
    {
        private OilWorker oilWorkder = new();

        [ObservableProperty]
        private ObservableCollection<OilModel> oilList;

        public CalculatorViewModel()
        {
            OilList = new();
            OilList = oilWorkder.GetAllOils();
            Debug.Write("");
        }
    }
}
